package com.wang.service;

import com.wang.mapper.DevCollectRateDao;
import com.wang.pojo.DevCollectRate;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

/**
 * @author wcy
 * @date 2022-07-28 11:24
 */
@Service
@Transactional
public class DevCollectRateServiceImpl implements DevCollectRateService {


    @Autowired
    private DevCollectRateDao devCollectRateDao;

    @Override
    public DevCollectRate selectCollectRateByDevId(Integer devId) {
        return devCollectRateDao.selectCollectRateByDevId(devId);
    }

    @Override
    public void updateDevCollectRate(Integer devId, String intervalData) {
        devCollectRateDao.updateDevCollectRate(devId, intervalData);
    }
}
